﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HQWeb.FileManage
{
    public partial class FileManageList  : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            VerdictIsLogin();
            username.Value = Session["USERNAME"].ToString();
            userword.Value = Session["USERWORD"].ToString();
            //username.Value = "houhuis";
            //userword.Value = "houhuis";
            BindDate();
        }

        private void BindDate()
        {
            int branch_id = Convert.ToInt32(Session["BRANCH_ID"]);            
            Model.SysManage.T_PUB_BRANCH model = new Model.SysManage.T_PUB_BRANCH();
            BLL.SysManage.T_PUB_BRANCH bll = new BLL.SysManage.T_PUB_BRANCH();
            model = bll.GetModel(branch_id);
            //branchname.Value = model.BRANCH_NAME + DateTime.Today.ToString("yyyyMMdd");
            lblbranch.InnerText = model.BRANCH_NAME;
            inputdate.Value = DateTime.Today.ToString("yyyy-MM-dd");
        }
    }
}